package sctu.edu.java.year2016.team04.baiyunfei.day20160529.chapter7_3;

import sctu.edu.java.year2016.team04.baiyunfei.day20160529.chapter7_3.Chapter7_3_2;

import java.util.Scanner;

/**
 * 根据运行参数个数决定循环打印变量i值的次数；
 * Created by DE on 2016/5/29.
 */
public class Chapter7_3 {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int a=scan.nextInt();

        Chapter7_3_2 sum1=new Chapter7_3_2(a,5);

        System.out.println("和为" + sum1.sum);

        for(int i=0;i<args.length+a;i++){

            System.out.println("i的值:" + i);
        }
    }
}
